﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<link href="~/css/bootstrap.css" rel="stylesheet">
<script src="~/js/jquery-3.3.1.js"></script>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>消费中心</title>
</head>
<body>
    <input type="hidden" value="@Url.Content("~/AdminPage/XiaoFei")" id="Path" />
    消费卡号:<input class="form-control" id="card" name="card" type="text">
    充值金额:<input class="form-control" id="money" name="money" type="text">
    消费备注:<input class="form-control" id="rameak" name="rameak" type="text">
    <input type="button" id="sumbit" value="消费" />

</body>


</html>
<script>
    $(function () {
        var path = $("#Path").val();
        $("#sumbit").click(function () {
            var card = $("#card").val();
            var money = $("#money").val();
            var rameak = $("#rameak").val();
            $.post(path, { card: card, money: money,rameak:rameak }, function (data) {
                alert(data.msg)
            }, "json")

        });
    })


</script>